/*
 * Copyright (c) 2010-2020 DMGIS Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * DMGIS. You shall not disclose such Confidential Information
 * and shall use it only in accordance with the terms of the agreements
 * you entered into with DMGIS.
 *
 */
package com.dmgis.qxfw.dataservice.businessservice.yygt.service.impl;


import com.dmgis.qxfw.dataservice.businessservice.api.domain.DbConfig;
import com.dmgis.qxfw.dataservice.businessservice.api.entity.qx.township_station;
import com.dmgis.qxfw.dataservice.businessservice.api.entity.yj.*;
import com.dmgis.qxfw.dataservice.businessservice.api.entity.zy.base_product;
import com.dmgis.qxfw.dataservice.businessservice.common.domain.DZQuery;
import com.dmgis.qxfw.dataservice.businessservice.common.domain.DisPointSearch;
import com.dmgis.qxfw.dataservice.businessservice.common.entity.DZWarning;
import com.dmgis.qxfw.dataservice.businessservice.common.entity.Emergency;
import com.dmgis.qxfw.dataservice.businessservice.common.entity.TownshipStation;
import com.dmgis.qxfw.dataservice.businessservice.common.util.DateTime;
import com.dmgis.qxfw.dataservice.businessservice.common.util.JsonUtil;
import com.dmgis.qxfw.dataservice.businessservice.common.util.StringUtil;
import com.dmgis.qxfw.dataservice.businessservice.controller.ProcessRequestController;
import com.dmgis.qxfw.dataservice.businessservice.domain.RequestDataBySelect;
import com.dmgis.qxfw.dataservice.businessservice.yygt.service.IGuoTuService;
import com.fasterxml.jackson.core.type.TypeReference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.text.SimpleDateFormat;
import java.util.*;

@Controller
@RequestMapping("GuoTuService")
public class GuoTuServiceImpl implements IGuoTuService {
    ProcessRequestController process = new ProcessRequestController();

    @Override
    public Date getDZNewDate() {
        // TODO 获取地灾预警最新时间
        dz_warning newDate = new dz_warning();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        String[] columns = new String[]{"to_char(datechar, 'yyyy-MM-dd HH24:MI:SS') as dateChar"};
        selectRequest.setColumns(columns);
        selectRequest.setSort(new String[]{"datechar desc"});
        selectRequest.setLimit(1);
        try {
            selectParam.put("method", "dz_warning");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);//  "http://localhost:8079/lx_qx_data/WarningDataService"
            newDate = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dz_warning>>() {
            }).get(0);
        } catch (Exception e) {
            // TODO: handle exception
            newDate.setDatechar(DateTime.now().toDate());
        }
        return newDate.getDatechar();
    }

    @Override
    public List<DZWarning> getDZInfo(DZQuery dzQuery) {
        // TODO 获取地灾预警信息
        List<dz_warning> listData = new ArrayList<dz_warning>();
        List<DZWarning> resultList = new ArrayList<DZWarning>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        int whereCount = 0;
        strWhere.append("  state>=1  and   ");
        if (dzQuery.getStartDate() != null) {
            whereCount++;
            strWhere.append(String.format("DateChar>='%s'", dzQuery.getStartDate()));
        }
        if (dzQuery.getEndDate() != null) {
            strWhere.append(String.format(" and DateChar<='%s'", dzQuery.getEndDate()));
        }
        if (!StringUtil.IsNullOrEmpty(dzQuery.getType())) {
            strWhere.append(String.format(" and warningtype='%s'", dzQuery.getType()));
        }
        if (whereCount == 0 && !StringUtil.IsNullOrEmpty(strWhere.toString())) {
            strWhere = strWhere.replace(0, 4, "");
        }
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"datechar desc"});
        try {
            selectParam.put("method", "dz_warning");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dz_warning>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        if (listData != null && listData.size() > 0) {
            for (dz_warning dzWarn : listData) {
                DZWarning dzWarning = new DZWarning();
                dzWarning.setDocid(dzWarn.getDocid());
                dzWarning.setDateChar(dzWarn.getDatechar());
                dzWarning.setPos(dzWarn.getPos());
                dzWarning.setGradeArea2(dzWarn.getGradearea2());
                dzWarning.setGradeArea3(dzWarn.getGradearea3());
                dzWarning.setGradeArea4(dzWarn.getGradearea4());
                dzWarning.setGradeArea5(dzWarn.getGradearea5());
                dzWarning.setDocpath(dzWarn.getDocpath());
                resultList.add(dzWarning);
            }
        }
        return resultList;
    }

    @Override
    public List<DZWarning> getDZAreaDoc(String docid) {
        // TODO 获取地灾地区预警信息
        List<dz_warning> listData = new ArrayList<dz_warning>();
        List<DZWarning> resultList = new ArrayList<DZWarning>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        int whereCount = 0;
        if (!StringUtil.IsNullOrEmpty(docid)) {
            strWhere.append(String.format(" and docid='%s'", docid));
        }
        if (whereCount == 0 && !StringUtil.IsNullOrEmpty(strWhere.toString())) {
            strWhere = strWhere.replace(0, 4, "");
        }
        selectRequest.setLimit(1);
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"datechar desc"});
        try {
            selectParam.put("method", "dz_warning");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);//  "http://localhost:8079/lx_qx_data/WarningDataService"
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dz_warning>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        if (listData != null && listData.size() > 0) {
            for (dz_warning dzWarn : listData) {
                DZWarning dzWarning = new DZWarning();
                dzWarning.setDocid(dzWarn.getDocid());
                dzWarning.setDateChar(dzWarn.getDatechar());
                dzWarning.setPos(dzWarn.getPos());
                dzWarning.setGradeArea2(dzWarn.getGradearea2());
                dzWarning.setGradeArea3(dzWarn.getGradearea3());
                dzWarning.setGradeArea4(dzWarn.getGradearea4());
                dzWarning.setGradeArea5(dzWarn.getGradearea5());
                dzWarning.setDocpath(dzWarn.getDocpath());
                resultList.add(dzWarning);
            }
        }
        return resultList;
    }

    @Override
    public List<potential_points> selectDisPoint(DisPointSearch disPointSearch) {
        // TODO Auto-generated method stub
        //查询灾点信息
        List<potential_points> dataList = new ArrayList<potential_points>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        // 拼接where字段
        StringBuilder strWhere = new StringBuilder();
        int whereCount = 0;
        strWhere.append(" 1=1");
        if (!StringUtil.IsNullOrEmpty(disPointSearch.getDisId())) {
            strWhere.append(String.format(" and pp_id like '%s%%'", disPointSearch.getDisId()));
        }
        if (!StringUtil.IsNullOrEmpty(disPointSearch.getDisName())) {
            strWhere.append(" and pp_name like '%" + disPointSearch.getDisName() + "%'");
        }
        if (!StringUtil.IsNullOrEmpty(disPointSearch.getCounty())) {
            strWhere.append(" and county like '%" + disPointSearch.getCounty() + "%'");
        }
        if (!StringUtil.IsNullOrEmpty(disPointSearch.getDisType())) {
            strWhere.append(String.format(" and dis_type like '%s%%'", disPointSearch.getDisType()));
        }
        if (!StringUtil.IsNullOrEmpty(disPointSearch.getLevel())) {
            strWhere.append(String.format(" and dis_level like '%s%%'", disPointSearch.getLevel()));
        }

        if (!StringUtil.IsNullOrEmpty(disPointSearch.getDisLevel())) {
            strWhere.append(String.format(" and danger_level like '%s%%'", disPointSearch.getDisLevel()));
        }
        if (disPointSearch.getProperty() != null && disPointSearch.getPropertyTo() != null) {
            strWhere.append(String.format(" and threat_prop between '%d' and '%d'", disPointSearch.getProperty(),
                    disPointSearch.getPropertyTo()));
        }
        if (disPointSearch.getPopulation() != null && disPointSearch.getPopulationTo() != null) {
            strWhere.append(String.format(" and threat_pop between '%d' and '%d'", disPointSearch.getPopulation(),
                    disPointSearch.getPopulationTo()));
        }

        strWhere.append(String.format(" and county like '%s%%'", DbConfig.COUNTY));
        selectRequest.setParam(strWhere.toString());
        try {
            selectParam.put("method", "potential_points");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            dataList = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<potential_points>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.getStackTrace());
        }
        return dataList;
    }

    @Override
    public List<warn_moni_info> getQxElemMoniData(int removeHour) {
        // TODO Auto-generated method stub
        List<warn_moni_info> listData = new ArrayList<warn_moni_info>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        DateTime endDate = DateTime.now();
        DateTime startDate = endDate.AddHours(-removeHour);

     /*   strWhere.append(String.format("warningtime between '%s' and '%s' and isremoved !=1 and monitortype=3",
                startDate.toDateTimeString(), endDate.toDateTimeString()));*/
        strWhere.append(String.format("warningtime between '%s' and '%s' and isremoved !=1 ",
                "2024-05-05 16:10:00", "2024-05-08 16:10:00"));
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"warningtime desc"});
        try {
            selectParam.put("method", "warn_moni_info");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<warn_moni_info>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        return listData;
    }

    @Override
    public List<radar_warn_monitor_info> getRadarMoniData(int removeHour) {
        // TODO Auto-generated method stub
        List<radar_warn_monitor_info> listData = new ArrayList<radar_warn_monitor_info>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        DateTime endDate = DateTime.now();
        DateTime startDate = endDate.AddHours(-removeHour);
        strWhere.append(String.format("warningtime between '%s' and '%s' and isremoved !=1",
                startDate.toDateTimeString(), endDate.toDateTimeString()));
        /*strWhere.append(String.format("warningtime between '%s' and '%s' and isremoved !=1",
                "2024-06-01 07:51:00", "2024-06-02 08:51:00"));*/
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"warningtime desc"});
        try {
            selectParam.put("method", "radar_warn_monitor_info");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<radar_warn_monitor_info>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        return listData;
    }

    @Override
    public String getProductID(String docPath) {
        // TODO Auto-generated method stub
        List<base_product> listData = new ArrayList<base_product>();
        String result = "";
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        if (!StringUtil.IsNullOrEmpty(docPath)) {
            strWhere.append(String.format("productname='%s'", docPath));

        }
        selectRequest.setParam(strWhere.toString());
        try {
            selectParam.put("method", "base_product");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<base_product>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        if (listData != null && listData.size() > 0) {
            for (base_product dzWarn : listData) {
                result = dzWarn.getId().toString();
            }
        }
        return result;
    }

    @Override
    public List<DZWarning> getDZWarning() {
        List<dz_warning> listData = new ArrayList<dz_warning>();
        List<DZWarning> resultList = new ArrayList<DZWarning>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        selectRequest.setSort(new String[]{"datechar desc"});
        selectRequest.setLimit(1);
        try {
            selectParam.put("method", "dz_warning");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dz_warning>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        if (listData != null && listData.size() > 0) {
            for (dz_warning dzWarn : listData) {
                DZWarning dzWarning = new DZWarning();
                dzWarning.setDocid(dzWarn.getDocid());
                dzWarning.setDateChar(dzWarn.getDatechar());
                dzWarning.setPos(dzWarn.getPos());
                dzWarning.setGradeArea2(dzWarn.getGradearea2());
                dzWarning.setGradeArea3(dzWarn.getGradearea3());
                dzWarning.setGradeArea4(dzWarn.getGradearea4());
                dzWarning.setGradeArea5(dzWarn.getGradearea5());
                dzWarning.setDocpath(dzWarn.getDocpath());
                resultList.add(dzWarning);
            }
        }
        return resultList;
    }


    /**
     * 获取应急点
     * @author ymf
     * @date 2019/9/18
     * @param
     * @return
     **/
    @Override
    public List<Emergency> getEmpoint(DZQuery dzQuery) {
        List<emergency> listData = new ArrayList<emergency>();
        List<Emergency> resultList = new ArrayList<Emergency>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        StringBuilder strWhere = new StringBuilder();
        int whereCount = 0;
        if (dzQuery.getStartDate() != null) {
            whereCount++;
            strWhere.append(String.format("datetime>='%s'", dzQuery.getStartDate()));
        }
        if (dzQuery.getEndDate() != null) {
            strWhere.append(String.format(" and datetime<='%s'", dzQuery.getEndDate()));
        }
        if (!StringUtil.IsNullOrEmpty(dzQuery.getType())) {
            strWhere.append(String.format(" and type='地质灾害'"));
        }
        if (whereCount == 0 && !StringUtil.IsNullOrEmpty(strWhere.toString())) {
            strWhere = strWhere.replace(0, 4, "");
        }
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"datetime desc"});
        try {
            selectParam.put("method", "emergency");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<emergency>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        if (listData != null && listData.size() > 0) {
            for (emergency em : listData) {
                Emergency emy = new Emergency();
                emy.setDatetime(sdf.format(em.getDatetime()));
                emy.setId(em.getId());
                emy.setLongitude(em.getLongitude());
                emy.setLatitude(em.getLatitude());
                emy.setTitle(em.getTitle());
                emy.setType(em.getType());
                emy.setDocpath(em.getDocpath());
                resultList.add(emy);
            }
        }
        return resultList;
    }

    @Override
    public List<Emergency> getemPoint(String staName) {
        List<Emergency> newDate = new ArrayList<Emergency>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        selectRequest.setParam("id="+staName);
        try {
            selectParam.put("method", "emergency");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            newDate = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<Emergency>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.getStackTrace());
        }
        return newDate;
    }

    @Override
    public List<TownshipStation> queryCounty(String text) {

        List<TownshipStation> countyList = new ArrayList<TownshipStation>();
        List<village> village = new ArrayList<village>();
        List<township_station> township_station = new ArrayList<township_station>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        selectRequest.setParam(String.format(" villagename like '%%%s%%'", text ));
        try {
            selectParam.put("method", "village");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            village = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<village>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.getStackTrace());
        }
        if (village.size()>0){
            for (village v:village) {
                TownshipStation townshipStation = new TownshipStation();
                townshipStation.setStationName(v.getVillagename());
                townshipStation.setLongitude(v.getLon());
                townshipStation.setLatitude(v.getLat());
                countyList.add(townshipStation);
            }
        }

        Map<String, String> selectParam1 = new HashMap<String, String>();
        RequestDataBySelect selectRequest1 = new RequestDataBySelect();
        //拼接字段
        StringBuilder strwhere = new StringBuilder();
        strwhere.append(String.format("and stationname like '%%%s%%'", text ));
        strwhere.append(String.format("and city like '%s%%'", DbConfig.CITY));
        selectRequest1.setParam(strwhere.toString());
        try {
            selectParam1.put("method", "township_station");
            selectParam1.put("sqlType", "select");
            selectParam1.put("param", JsonUtil.object2Json(selectRequest1));
            String message = process.processRequest(selectParam1);
            township_station = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<township_station>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
            System.err.println(e.getStackTrace());
        }
        if (township_station.size()>0){
            for (township_station t:township_station) {
                TownshipStation townshipStation = new TownshipStation();
                townshipStation.setStationName(t.getStationname());
                townshipStation.setLongitude(t.getLongitude());
                townshipStation.setLatitude(t.getLatitude());
                countyList.add(townshipStation);
            }
        }



        return countyList;
    }

    @Override
    public List<dispoint_monitor_info> getHiddendangerpoint() {
        DateTime dt = DateTime.now();
        String Start = dt.toDateString() + " 00:00:00";
        String end = dt.toDateString() + " 23:59:59";
        List<dispoint_monitor_info> resultList = new ArrayList<dispoint_monitor_info>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        selectRequest.setColumns(new String[]{"disaster_num", "disaster_name", "monitor_info","warn_time","monitor_value","county","city","warn_type","longitude  as lon","latitude  as lat",});
        StringBuilder strWhere = new StringBuilder();
        if (!StringUtil.IsNullOrEmpty(Start)) {
            strWhere.append(String.format("  warn_time>='%s'", Start));
        }
        if (!StringUtil.IsNullOrEmpty(end)) {
            strWhere.append(String.format(" and warn_time<='%s'", end));
        }
        strWhere.append(String.format(" and county like '%s%%'", DbConfig.COUNTY));
        selectRequest.setParam(strWhere.toString());
        selectRequest.setSort(new String[]{"warn_time desc"});
        try {
            selectParam.put("method", "dispoint_monitor_info");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            resultList = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dispoint_monitor_info>>() {
            },"yyyy-HH-mm");
        } catch (Exception e) {
            // TODO: handle exception
        }
        return resultList;
    }

    /***
     * 获取地灾预警信息 最新
     * @return
     */
    @Override
    public List<DZWarning> GetDZWarningNewest() {
        List<dz_warning> listData = new ArrayList<dz_warning>();
        List<DZWarning> resultList = new ArrayList<DZWarning>();
        Map<String, String> selectParam = new HashMap<String, String>();
        RequestDataBySelect selectRequest = new RequestDataBySelect();
        selectRequest.setParam("state>=3  and  warningtype='短期预警'");
        selectRequest.setSort(new String[]{"datechar desc"});
        selectRequest.setLimit(1);
        try {
            selectParam.put("method", "dz_warning");
            selectParam.put("sqlType", "select");
            selectParam.put("advCode", DbConfig.advCode);
            selectParam.put("param", JsonUtil.object2Json(selectRequest));
            String message = process.processRequest(selectParam);
            listData = JsonUtil.jsonStr2TypeReference(message, new TypeReference<List<dz_warning>>() {
            });
        } catch (Exception e) {
            // TODO: handle exception
        }
        if (listData != null && listData.size() > 0) {
            for (dz_warning dzWarn : listData) {
                DZWarning dzWarning = new DZWarning();
                dzWarning.setDocid(dzWarn.getDocid());
                dzWarning.setDateChar(dzWarn.getDatechar());
                dzWarning.setPos(dzWarn.getPos());
                dzWarning.setGradeArea2(dzWarn.getGradearea2());
                dzWarning.setGradeArea3(dzWarn.getGradearea3());
                dzWarning.setGradeArea4(dzWarn.getGradearea4());
                dzWarning.setGradeArea5(dzWarn.getGradearea5());
                dzWarning.setDocpath(dzWarn.getDocpath());
                dzWarning.setWarn_result(dzWarn.getWarn_result());
                resultList.add(dzWarning);
            }
        }
        return resultList;
    }


}
